package com.agger.eurekaclientmanagerservice.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @classname: BeanConfiguration
 * @description: Bean注册配置类
 * @author chenhx
 * @date 2020-04-22 12:07:19
 */
@Configuration
public class BeanConfiguration {

    @Bean("restTemplate")
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
